package com.eric.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 仓库信息表
 * </p>
 *
 * @author 新哥
 * @since 2024-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("warehouseinfo")

public class Warehouseinfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
    * 主键id，非空、唯一、自增
    * */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /*
    * 仓库名称
    * */
    @TableField("name")
    private String name;

    /*
    * 仓库地址
    * */
    @TableField("address")
    private String address;

    /*
    * 仓库联系人
    * */
    @TableField("contact")
    private String contact;

    /*
    * 仓库联系电话
    * */
    @TableField("phone")
    private String phone;

    /*
    * 备注、描述
    * */
    @TableField("description")
    private String description;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @TableField("status")
    private Integer status;

    @TableField("version")
    @Version
    private Integer version;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField("create_by")
    private String createBy;

    @TableField("last_update_by")
    private String lastUpdateBy;
}
